﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Display.DialogUI {
    import Engine.Managers.*;
    import flash.display.*;
    import flash.utils.*;
    import Classes.util.*;
    import Modules.stats.types.*;

    public class ComboEnergyDialog extends GenericDialog {

        private var m_buyCallback:Function;
        private var m_askCallback:Function;
        private var m_closeCallback:Function;

        public function ComboEnergyDialog(_arg1:Function=null, _arg2:Function=null, _arg3:Function=null){
            StatsManager.count(StatsCounterType.PROMPTS, StatsKingdomType.OUT_OF_ENERGY, StatsPhylumType.ENERGY_COMBO_ENABLED, "prompted");
            this.m_buyCallback = _arg1;
            this.m_askCallback = _arg2;
            this.m_closeCallback = _arg3;
            super("");
        }
        override protected function loadAssets():void{
            Global.delayedAssets.get(DelayedAssetLoader.ENERGY_ASSETS, makeAssets);
        }
        override protected function createAssetDict():Dictionary{
            var _local1:Dictionary = new Dictionary();
            _local1["dialog_bg"] = (new m_comObject.energyDialog_bg() as DisplayObject);
            _local1["energyDialog_energyGuy"] = (new m_comObject.energyDialog_energyGuy() as DisplayObject);
            return (_local1);
        }
        override protected function createDialogView(_arg1:Dictionary):GenericDialogView{
            var _local2:ComboEnergyDialogView = new ComboEnergyDialogView(_arg1, this.m_buyCallback, this.m_askCallback, this.m_closeCallback);
            return (_local2);
        }

    }
}//package Display.DialogUI 
